function T = dynamic_g2_tt(T, y, x, params, steady_state, it_)
% function T = dynamic_g2_tt(T, y, x, params, steady_state, it_)
%
% File created by Dynare Preprocessor from .mod file
%
% Inputs:
%   T             [#temp variables by 1]     double  vector of temporary terms to be filled by function
%   y             [#dynamic variables by 1]  double  vector of endogenous variables in the order stored
%                                                    in M_.lead_lag_incidence; see the Manual
%   x             [nperiods by M_.exo_nbr]   double  matrix of exogenous variables (in declaration order)
%                                                    for all simulation periods
%   steady_state  [M_.endo_nbr by 1]         double  vector of steady state values
%   params        [M_.param_nbr by 1]        double  vector of parameter values in declaration order
%   it_           scalar                     double  time period for exogenous variables for which
%                                                    to evaluate the model
%
% Output:
%   T           [#temp variables by 1]       double  vector of temporary terms
%

assert(length(T) >= 151);

T = model_file.dynamic_g1_tt(T, y, x, params, steady_state, it_);

T(100) = getPowerDeriv(y(120)*exp(y(127)),1-params(3),2);
T(101) = getPowerDeriv(T(7),T(8),2);
T(102) = (-exp(y(54)))/(y(1)*y(1));
T(103) = (-((-(y(23)*exp(y(54))))*(y(1)+y(1))))/(y(1)*y(1)*y(1)*y(1));
T(104) = getPowerDeriv(y(50),T(10),2);
T(105) = (-((-(params(6)-y(34)))*(y(29)+y(29))))/(y(29)*y(29)*y(29)*y(29));
T(106) = getPowerDeriv(T(12),T(3),2);
T(107) = 1/(y(29)*y(29));
T(108) = getPowerDeriv(y(7),params(12),2);
T(109) = getPowerDeriv(y(34),1-params(12),2);
T(110) = getPowerDeriv(T(18),T(16),2);
T(111) = T(1)/(y(7)*y(7));
T(112) = (-((-y(32))*(y(7)+y(7))))/(y(7)*y(7)*y(7)*y(7));
T(113) = y(45)*(-((-((-(y(32)*y(63)))*(y(7)+y(7))))/(y(7)*y(7)*y(7)*y(7))));
T(114) = (y(11)+y(11))/(y(11)*y(11)*y(11)*y(11));
T(115) = getPowerDeriv(T(18),T(23),2);
T(116) = T(26)*(exp(y(37)-params(44))*2*(exp(y(37)-params(44))-1)+exp(y(37)-params(44))*2*exp(y(37)-params(44)));
T(117) = exp(y(37)-params(44))*params(14)*exp(y(37)-params(44))+exp(y(37)-params(44))*params(14)*exp(y(37)-params(44));
T(118) = T(68)+T(117);
T(119) = exp(y(37)-params(44))*exp(y(37)-params(44))*(-params(14))+exp(y(37)-params(44))*exp(y(37)-params(44))*(-params(14));
T(120) = T(69)+T(119);
T(121) = (-exp(y(123)))/T(71);
T(122) = T(71)+T(71);
T(123) = (-(y(121)*exp(y(123))))*T(122);
T(124) = ((-(y(121)*exp(y(123))))*T(71)-T(123))/(T(71)*T(71));
T(125) = (-(T(49)*T(49)));
T(126) = getPowerDeriv(T(34),T(32),2);
T(127) = T(1)/(y(50)*y(50));
T(128) = T(31)*(1-T(32))*(1-T(32))*exp(y(49)*(1-T(32)));
T(129) = (-((-y(30))*(y(50)+y(50))))/(y(50)*y(50)*y(50)*y(50));
T(130) = T(79)*T(79)*T(126)+T(55)*T(129);
T(131) = (-((-((-(exp(y(37))*(1+y(40))))*(1+y(10)+1+y(10))))/((1+y(10))*(1+y(10))*(1+y(10))*(1+y(10)))));
T(132) = (-((1+exp(y(80)))*exp(y(74))*exp(y(21))))*T(88)-(-((1+exp(y(80)))*exp(y(74))*exp(y(21))))*(T(88)+T(88));
T(133) = (-(T(132)/(T(88)*T(88))));
T(134) = (-((-(exp(y(21))*exp(y(80))*exp(y(74))))/T(88)));
T(135) = T(88)*(-(exp(y(21))*(1+exp(y(80)))*exp(y(76))))-(-(exp(y(21))*(1+exp(y(80)))*exp(y(76))))*(T(88)+T(88));
T(136) = (-(T(135)/(T(88)*T(88))));
T(137) = (-((-(exp(y(21))*exp(y(80))*exp(y(76))))/T(88)));
T(138) = (-((1+exp(y(81)))*exp(y(77))*exp(y(22))))*T(93)-(-((1+exp(y(81)))*exp(y(77))*exp(y(22))))*(T(93)+T(93));
T(139) = (-(T(138)/(T(93)*T(93))));
T(140) = (-((-(exp(y(22))*exp(y(81))*exp(y(77))))/T(93)));
T(141) = T(93)*(-(exp(y(22))*(1+exp(y(81)))*exp(y(79))))-(-(exp(y(22))*(1+exp(y(81)))*exp(y(79))))*(T(93)+T(93));
T(142) = (-(T(141)/(T(93)*T(93))));
T(143) = (-((-(exp(y(22))*exp(y(81))*exp(y(79))))/T(93)));
T(144) = T(93)*(-(exp(y(22))*(1+exp(y(81)))*exp(y(78))))-(-(exp(y(22))*(1+exp(y(81)))*exp(y(78))))*(T(93)+T(93));
T(145) = (-(T(144)/(T(93)*T(93))));
T(146) = (-((-(exp(y(22))*exp(y(81))*exp(y(78))))/T(93)));
T(147) = T(39)*getPowerDeriv(y(29),T(40),2);
T(148) = getPowerDeriv(T(42),T(43),2);
T(149) = T(41)*getPowerDeriv(params(6)-y(34),T(40),2);
T(150) = (y(2)+y(10)*y(16))*(y(2)+y(10)*y(16));
T(151) = (y(28)+y(50)*y(40))*(y(28)+y(50)*y(40));

end
